﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Core.Utilities;
using VOL.Entity.DomainModels;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.BasicData;

namespace VOL.SmartMecial.Services.BasicData
{
    /// <summary>
    /// 显示护理单元列表
    /// </summary>
    public class NursingUnitShowService : INursingUnitShowService
    {
        private readonly IBaseRepository<NursingUnit> _baseRepository;

        public NursingUnitShowService(IBaseRepository<NursingUnit> baseRepository) 
        {
            _baseRepository = baseRepository;
        }
        public async Task<WebResponseContent> NursingUnitShow()
        {
            var nursingUnits = _baseRepository.GetAll();
            var response = WebResponseContent.Instance.OK("查询成功", nursingUnits);
            return await Task.FromResult(response);
        }
    }
}
